import { AppRouteRecordRaw } from '@/types/route'
import { shallowRef } from 'vue'
import Layout from '@/layout/index.vue'

export let statisticsRouter: AppRouteRecordRaw = {
  path: '/statistics',
  name: 'statistics',
  component: shallowRef(Layout),
  meta: {
    title: '统计分析',
    hideRootMenu: true
  },
  children: [
    {
      path: '/statistics/info',
      component: () => import(/* webpackChunkName: "statisticsInfo" */ '@/views/statistics/statisticsInfo.vue'),
      name: 'statisticsInfo',
      meta: { title: '统计分析', icon: 'icon-tongjifenxi_icon' }
    }
  ]
}

export default statisticsRouter
